package com.open.basic.exception;

/**
 * @author: system
 * @Date: 2024/4/19 15:01
 * @Version: V1.0
 * @description: desc:非业务方面系统异常
 */

public class SystemException extends GenericException {


    /**
     * 系统异常构造器.<br>
     *
     * @param message 异常信息
     * @ServiceMethod
     */
    public SystemException(String message) {
        super(message);
        this.msg = message;
    }

    /**
     * 系统异常构造器.<br>
     *
     * @param code    异常信息代码
     * @param message 异常信息
     * @ServiceMethod
     */
    public SystemException(String code, String message) {
        super(message);
        this.code = code;
        this.msg = message;
    }

    /**
     * 系统异常构造器.<br>
     *
     * @param exception 异常对象
     * @ServiceMethod
     */
    public SystemException(Exception exception) {
        super(exception);
    }

    public SystemException(Throwable throwable) {
        super(throwable);
    }

    /**
     * 系统异常构造器.<br>
     *
     * @param message   异常信息
     * @param exception 异常对象
     * @ServiceMethod
     */
    public SystemException(String message, Exception exception) {
        super(message, exception);
        this.msg = message;
    }

    public SystemException(String message, Throwable throwable) {
        super(message, throwable);
        this.msg = message;
    }

    public SystemException(String code, String message, Throwable throwable) {
        super(code, message, throwable);
        this.code = code;
        this.msg = message;
    }


}
